package exactSearch;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;


public class Table {
	public static void main(String []args) throws IOException{
		PrintStream ps=new PrintStream("J:\\BC3_IMT_Training\\table.txt");
		
		FileReader fr1=new FileReader("J:\\BC3_IMT_Training\\training.txt");
		BufferedReader fbr1=new BufferedReader(fr1);
		
		FileReader fr2=new FileReader("J:\\BC3_IMT_Training\\finding.txt");
		BufferedReader fbr2=new BufferedReader(fr2);
		
		String str1=fbr1.readLine();
		String str2=fbr2.readLine();
		while(str1!=null){
			ps.print(str1+"\t");
			int i=str2.indexOf("MI:");
			String st=str2.substring(i);
			ps.print(st);
			ps.println();

			str1=fbr1.readLine();
			str2=fbr2.readLine();
		}
		
		
	}
}
